import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router";
import store from "@/store";
import i18n from "@/plugins/i18n";
import api from "@/plugins/api";
import global from "@/plugins/global";
import "uno.css";
import "animate.css";

const app = createApp(App);
app.config.globalProperties["STATIC_URL"] = "/";
app.use(store);
app.use(router);
app.use(i18n);
app.use(api);
app.use(global);
app.mount("#app").$nextTick(() => {
  postMessage({ payload: "removeLoading" }, "*");
  window.electronAPI.setTitle(VITE_ENV.VITE_TITLE);
});
